﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GXRTBTC.PublicClassLibrary.Model
{
    /// <summary>
    /// 告警流水列自定义
    /// </summary>
    public class AlarmColumns
    {
        //GridColumns的model
        public class GridColumnsMode
        {
            /// <summary>
            /// 所属的过滤器
            /// </summary>
            public string Filter_unique_code { get; set; } = "";
            /// <summary>
            /// 用户
            /// </summary>
            public string userID { get; set; } = "";
            public int agentType { get; set; } = 1;
            public List<ColumnMode> columnModes { get; set; } = new List<ColumnMode>();//列信息
        }

        /// <summary>
        /// 需要保存列信息的model
        /// </summary>
        public class ColumnMode
        {
            /// <summary>
            /// 显示名称
            /// </summary>
            public string name { get; set; }
            /// <summary>
            /// field_name
            /// </summary>
            public string field { get; set; }
            /// <summary>
            /// 是否显示
            /// </summary>
            public bool visible { get; set; }
            /// <summary>
            /// 显示顺序
            /// </summary>
            public int visibleIndex { get; set; }
            /// <summary>
            /// 列宽
            /// </summary>
            public string width { get; set; }
        }
    }
}
